import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import {
  IsNotEmpty, IsObject,
  IsOptional,
  IsString, IsUUID,
} from 'class-validator';

export class TrackCreateDto{
  @IsOptional()
  @ApiPropertyOptional()
  @IsUUID()
  userUuid?: string;

  @IsNotEmpty()
  @ApiProperty()
  @IsString()
  eventKey: string;

  @IsOptional()
  @ApiPropertyOptional()
  @IsObject()
  properties?: any;

}
